package com.zzptc.syl.traffic;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Choice extends AppCompatActivity {
    Button btaccount;
    Button btAdministration;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choice);
        initview();
        event();
    }

    private void initview() {
        btaccount=findViewById(R.id.bt_account);
        btAdministration=findViewById(R.id.bt_Administration);
    }

    private void event() {
        btAdministration.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(Choice.this, MainActivity.class);
                startActivity(intent);
            }
        });
        btaccount.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(Choice.this,AccountActivity2.class);
                startActivity(intent);
            }
        });
    }
}